def count_characters(s):
    uppercase_count = 0
    lowercase_count = 0
    digit_count = 0
    other_count = 0

    for char in s:
        if char.isupper():
            uppercase_count += 1
        elif char.islower():
            lowercase_count += 1
        elif char.isdigit():
            digit_count += 1
        else:
            other_count += 1

    return uppercase_count, lowercase_count, digit_count, other_count


s = input("请输入字符串：")
uppercase, lowercase, digit, other = count_characters(s)
print("大写字母个数：", uppercase)
print("小写字母个数：", lowercase)
print("数字个数：", digit)
print("其他字符个数：", other)
